import request from '@/utils/request'

// 神椰消费激励活动列表
export function incentiveActivityLs(params) {
  return request({
    url: '/shenye/incentive/activity/list',
    method: 'get',
    params
  })
}
// 查询管辖区域列表
export function areaList(params) {
  return request({
    url: '/shenye/incentive/activity/gov/area/list',
    method: 'get',
    params
  })
}
// 初始化参与活动店铺临时表
export function shopTempInit(data) {
  return request({
    url: '/shenye/incentive/activity/shop/temp/init',
    method: 'post',
    data
  })
}
// 查询参与活动店铺临时列表
export function shopTempList(params) {
  return request({
    url: '/shenye/incentive/activity/shop/temp/list',
    method: 'get',
    params
  })
}
// 查询活动店铺选择列表
export function shopSelectList(data) {
  return request({
    url: '/shenye/incentive/activity/shop/select/list',
    method: 'post',
    data
  })
}
// 批量添加店铺
export function activityShopTempAdd(data) {
  return request({
    url: '/shenye/incentive/activity/shop/temp/add',
    method: 'post',
    data
  })
}
// 批量删除店铺
export function activityShopTempDelete(data) {
  return request({
    url: '/shenye/incentive/activity/shop/temp/delete',
    method: 'post',
    data
  })
}
// 新增消费激励活动
export function shenyeIncentiveActivityAdd(data) {
  return request({
    url: '/shenye/incentive/activity',
    method: 'post',
    data
  })
}
// 编辑消费激励活动
export function shenyeIncentiveActivityEdit(data) {
  return request({
    url: '/shenye/incentive/activity',
    method: 'put',
    data: data
  })
}
// 查询神椰消费激励活动
export function incentiveActivityDetail(id) {
  return request({
    url: '/shenye/incentive/activity/detail/' + id,
    method: 'get',
  })
}
//查询参与活动店铺列表
export function shopListWatch(params) {
  return request({
    url: '/shenye/incentive/activity/shop/list',
    method: 'get',
    params
  })
}
//神椰消费激励明细列表
export function giveRecordList(params) {
  return request({
    url: '/shenye/incentive/activity/give/record/list',
    method: 'get',
    params
  })
}